package com.example.b_app;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ShowActivity extends AppCompatActivity {

    private TextView hello;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show);
        initView();
    }

    private void initView() {
        hello = (TextView) findViewById(R.id.hello);
        Intent intent=getIntent();
        String name=intent.getStringExtra("username");
        hello.setText(name+",你好");
    }
}
